const http = uni.$u.http
// 获取最新课程
export const mostNew = (data) => http.post('/course/mostNew', data );
//查询最热课程
export const mostHeat = (data) => http.post('/course/mostHeat', data );
 //查询课程
export const searchCourse = (data) => http.post('/course/search', data );
//免费课程
export const freeCourse = (data) => http.post('/course/search', data );
// 获取一级类
export const getFirstCategorys = (data) => http.get('/course/category/getFirstCategorys',{params:data} );
// 获取二级类
export const getSecondCategorys = (data) => http.get('/course/category/getSecondCategorys',{params:data} );
// 课程详情
export const getDetail = (data) => http.get('/course/getDetail',{params:data} );
